package com.duqc.springbatch;

import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisPagingItemReader;

/**
 * @ClassName CommonMybatisItemReader
 * @Description CommonMybatisItemReader
 * @Author duqc
 * @Date 2022/7/19
 **/
public class CommonMybatisItemReader<T> extends MyBatisPagingItemReader<T> {

    public CommonMybatisItemReader(SqlSessionFactory sqlSessionFactory) {
        setSqlSessionFactory(sqlSessionFactory);
        setQueryId("com.duqc.web.dao.BussinessOptionMapper.selectList");
        setPageSize(10);
    }

}
